package com.yiwyn.controller;

import com.yiwyn.beans.BaseBean;
import com.yiwyn.beans.MyBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private MyBean myBean;

    @Autowired
    private BaseBean baseBean;

    @GetMapping("/test")
    public String test() {
        return myBean.printB();
    }

    @GetMapping("/test1")
    public String test1() {
        return baseBean.printB();
    }

}
